using UnityEngine;
using System.Collections;

public class InitRoleInfoWindow : MonoBehaviour {
	
	public UILabel roleName;
	public UILabel roleLv;
	public UISlicedSprite experienceBar;
	public Transform maxbarLength;
	public UILabel experienceLabel;
	public UILabel prestige;
	public UILabel fightValue;
	public UILabel life;
	public UILabel force;
	public UILabel profession;
	public UILabel stunt;
	public UILabel uniqueSkill;
	public UILabel magic;
	
	void Awake(){
		Init();
	}
	
	void Init(){
		/*
		PlayerData playerData = PlayerData.Instance();
		
		roleName.text = playerData.PlayerName;
		roleLv.text = GameDefine.LVSTRING + playerData.Level;
		
		//s取得当前等级的最大经验值sTODO
		int maxExperience = 10000;
		float maxLength = maxbarLength.localScale.x;
		Vector3 scale = experienceBar.transform.localScale;
		scale.x = maxLength * playerData.Experience / maxExperience;
		experienceBar.transform.localScale = scale;
		experienceLabel.text = GameDefine.EXPERIENCESTRING + playerData.Experience + "/" + maxExperience;
		
		prestige.text = playerData.Prestige.ToString();
		fightValue.text = playerData.FightValue.ToString();
		life.text = playerData.Life.ToString();
		force.text = playerData.Force.ToString();
		profession.text = playerData.ProfessionName();
		stunt.text = playerData.StuntName();
		uniqueSkill.text = playerData.UniqueSkillName();
		magic.text = playerData.MagicName();
		*/
	}

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		
	}
}
